<?php
 class Community_Form_RateClass extends Zend_Dojo_Form{
 	
 	public function init()
		{
		
		Zend_Dojo::enableForm($this);
		$this->setName('Rate Class');
		
/**
     * Form initialization
     *
     * @return void
     */
    
     /**
      * Rate Course Difficulty
      */
     #

     $this->addElement(
    'HorizontalSlider',
    'difficulty',
    array(
        'label'                     => 'How difficult was this course',
        'value'                     => 3,
        'minimum'                   => 1,
        'maximum'                   => 5,
        'discreteValues'            => 5,
    	'clickselect'				=> true,
        'intermediateChanges'       => true,
        'showButtons'               => true,
        'bottomDecorationDijit'     => 'HorizontalLabels',
        'bottomDecorationContainer' => 'bottomContainer',
        'bottomDecorationLabels'    => array(
                'Very Easy',
                'Easy',
                'Moderate',
    			'Difficult',
    			'Very Difficult',
        ),
        'bottomDecorationParams'   => array(
            'list' => array(
                'style' => 'height:1em; font-size=75%;color:gray;',
            ),
        ),
    )
);

		
     $this->addElement(
    'HorizontalSlider',
    'usefulness_text',
    array(
        'label'                     => 'How useful was the text book of this course',
        'value'                     => 3,
        'minimum'                   => 1,
        'maximum'                   => 5,
        'discreteValues'            => 5,
    	'clickselect'				=> true,
        'intermediateChanges'       => true,
        'showButtons'               => true,
        'bottomDecorationDijit'     => 'HorizontalLabels',
        'bottomDecorationContainer' => 'bottomContainer',
        'bottomDecorationLabels'    => array(
                'Very Poor',
                'Poor',
                'Moderate',
    			'Useful',
    			'Very Useful',
        ),
        'bottomDecorationParams'   => array(
            'list' => array(
                'style' => 'height:1em; font-size=75%;color:gray;',
            ),
        ),
    )
);


$this->addElement(
    'HorizontalSlider',
    'instructor_rating',
    array(
        'label'                     => 'How would you rate the instructor of this course',
        'value'                     => 3,
        'minimum'                   => 1,
        'maximum'                   => 5,
        'discreteValues'            => 5,
    	'clickSelect'				=> true,
        'intermediateChanges'       => true,
        'showButtons'               => true,
        'bottomDecorationDijit'     => 'HorizontalLabels',
        'bottomDecorationContainer' => 'bottomContainer',
        'bottomDecorationLabels'    => array(
                'Very Poor',
                'Poor',
                'Average',
    			'Good',
    			'Excellent',
        ),
        'bottomDecorationParams'   => array(
            'list' => array(
                'style' => 'height:1em; font-size=75%;color:gray;',
            ),
        ),
    )
);


$this->addElement(
    'HorizontalSlider',
    'time_spent',
    array(
        'label'                     => 'What\'s the time burden of this course',
        'value'                     => 3,
        'minimum'                   => 1,
        'maximum'                   => 5,
        'discreteValues'            => 5,
        'intermediateChanges'       => true,
        'showButtons'               => true,
        'bottomDecorationDijit'     => 'HorizontalLabels',
        'bottomDecorationContainer' => 'bottomContainer',
        'bottomDecorationLabels'    => array(
                'Very Light',
                'Light',
                'Average',
    			'Heavy',
    			'Very Heavy',
        ),
        'bottomDecorationParams'   => array(
            'list' => array(
                'style' => 'height:1em; font-size=75%;color:gray;',
            ),
        ),
    )
);

$this->addElement(
    'HorizontalSlider',
    'final_grade',
    array(
        'label'                     => 'What was your final grade in this course',
        'value'                     => 3,
        'minimum'                   => 1,
        'maximum'                   => 5,
        'discreteValues'            => 5,
        'intermediateChanges'       => true,
        'showButtons'               => true,
        'bottomDecorationDijit'     => 'HorizontalLabels',
        'bottomDecorationContainer' => 'bottomContainer',
        'bottomDecorationLabels'    => array(
                'A/A-',
                'B+/B',
                'B-/C',
    			'C-/D',
    			'F',
        ),
        'bottomDecorationParams'   => array(
            'list' => array(
                'style' => 'height:1em; font-size=75%;color:gray;',
            ),
        ),
    )
);

/**
 * Enter Comments about the class
 */
        $this->addElement(
            'Editor',
            'comments',
            array(
                'label'        => 'Please enter a any comments about the class here: ',
             	'Height' => '65px',
            	'focusOnLoad' => true,
            )
        ); 
		        
       
        $this->setMethod('post');
        $this->setName('Rate Class');
        $submit = new Zend_Dojo_Form_Element_SubmitButton('submit');
        $submit->setLabel('Rate Class');
        
        $this->addElement($submit);



    }
    
 }
		
 	
